package cn.alm.springaihello.tools;

import org.springframework.ai.tool.annotation.Tool;

public class MathTools {

    @Tool(description = "相加运算")
    public Integer add(Integer a, Integer b) {
        System.out.println("add tool");
        return a + b;
    }

    @Tool(description = "相乘运算")
    public Integer mul(Integer a, Integer b) {
        System.out.println("mul tool");
        return a * b;
    }

}
